﻿@using Weibo4SharpWeb.Extension;
@using Weibo4Sharp.Model;
@model IEnumerable<Weibo4Sharp.Model.WeiboStatus>
@{
    ViewBag.Title = "Home";
}

<div id="home-header-container">
    <div id="status-stream">
        Stream
    </div>
    <div id="status-publisher-container" >
        @using (Html.BeginForm("Update", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {                
            <textarea id="status-area" name="status" hints="Share what's new">Share what's new</textarea>         
            <div id="status-toolbar">            
                    <input id="status-share" type="submit" value="Share" />
                    <input id="status-close" type="button" value="Close" />
                    <input id="status-choose-file" type="file" name="pic" />                    
                    @Html.Hidden("status-hidden")
            </div>
        }
    </div>
    <div class="clear"></div>
    <div class="hr"></div>
</div>

@Html.Partial("StatusList", Model)